<div class="layui-input-inline">
    <a class="layui-btn model-a" href="{:url('Payment/addCarTypePrice')}" data-title="添加车辆型号">添加车辆型号</a>
</div>
<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true', url:'{:url('Payment/personalcar')}', page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'name'}">车型</th>
        <th lay-data="{toolbar:'#vehicle_price'}">租金（公里）</th>
        <th lay-data="{toolbar:'#vehicle_priceday'}">租金（天数）</th>
        <th lay-data="{toolbar:'#info',width:180,}">操作</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="vehicle_price">
    {{#  if(d.vehicle_price == null || d.vehicle_price == ""){ }}
    暂未设置
    {{#  } else{ }}
    {{d.vehicle_price}}
    {{#  } }}
</script>
<script type="text/html" id="vehicle_priceday">
    {{#  if(d.vehicle_priceday == null || d.vehicle_priceday == ""){ }}
    暂未设置
    {{#  } else{ }}
    {{d.vehicle_priceday}}
    {{#  } }}
</script>
<script type="text/html" id="info">
    <a class="layui-btn layui-btn-normal layui-btn-xs  model-a" data-title="编辑" href="{:url('Payment/updCarTypePrice')}?id={{d.vehicle_rent_id}}">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs  edit-table ajax-delete delete" data-title="清空" data-msg="确认清空？" href="{:url('Payment/delCarPrice')}?id={{d.vehicle_rent_id}}">清空</a>
</script>


